use snafu::Snafu;

use super::{not_found_error, ParrotError};

#[derive(Debug, Snafu)]
#[snafu(visibility(pub(crate)))]
pub enum RequestError {
    #[snafu(display("Something not found:{source}"))]
    NotFound { source: not_found_error::NotFoundError },
}

impl From<RequestError> for ParrotError {
    fn from(value: RequestError) -> Self {
        ParrotError::Request { source: value }
    }
}
